package com.three.core.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @TableName tb_coupon_codes
 */
@TableName(value ="tb_coupon_codes")
@Data
public class CouponCodes implements Serializable {
    @TableId
    private Integer couponId;

    private String couponName;

    private String couponCode;

    private String couponType;

    private BigDecimal discountAmount;

    private BigDecimal discountPercentage;

    private BigDecimal minimumOrderAmount;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date startDate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endDate;

    private Integer usageLimit;

    private Integer usageCount;

    private Integer isUsed;

    private Date creationDate;

    private Integer storeId;

    private Integer userId;

    private Store store;

    private static final long serialVersionUID = 1L;
}